{if $notPopup}
</div>
</div>
</div>
</div>
{/if}

<script src="{$static_dir}/assets/js/iscroll.js"></script>
<script src="{$static_dir}/assets/js/amazeui.min.js"></script>
<script src="{$static_dir}/assets/js/amazeui.datatables.min.js"></script>
<script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>
<script src="{$static_dir}/assets/js/dataTables.responsive.min.js"></script>
<script src="{$static_dir}/assets/js/app.js"></script>
<script src="{$static_dir}/assets/js/common.js"></script>
<script>
	
	{include file="$JSFILE"}
	//菜单选中
	
	if($('#map').data('map')){
		
	}else{
		
		{if $notPopup}
			var myScroll = new IScroll('#scrollmain', {
				mouseWheel: true,
				disableMouse: true,
    			disablePointer: true
			});
			//点击添加图片
			$('input[type=file]').on('change', function() {
				var top=myScroll.y
				preview(this)
				setTimeout(function () {
					myScroll.refresh();
					myScroll.scrollTo(0, top);
				}, 100);
				})
		
		{/if}
	}
	{if $menu_current}
		
		$(".sidebar-nav [data-url^='{$menu_current}']").parents('li:first').find('a:first').addClass('active').parents('ul:not(".topest")').css('display','block').find('.sidebar-nav-sub-ico:first').addClass('sidebar-nav-sub-ico-rotate');
	
	{/if}
	//侧边栏滚动
	{if $notPopup}
	var menumainhi=parseInt($(window).height()-56-190-20)
	console.log(menumainhi)
	$('.menuheight').css('height',menumainhi+'px')
	var myScroll1 = new IScroll('#menuMain', {
		mouseWheel: true
	});
	
	$('.sidebar-nav-link').on('click',function(){
		setTimeout(function () {
	        myScroll1.refresh();
	    }, 100);
	});
	
	{/if}
	$(function(){
		 $("#loading-first").fadeOut(500);
		//更新缓存
		$('button[data-cache]').on('click',function(){
			var that=this
			$.ajax({
				type:'post',
				url:"index/cache",
				data:{
					cache:$(that).data('cache')
				},
				success:function(res){
					rslt(res)
				}
			})
		})
	})
</script>

</body>

</html>